#ifndef THRESHOLDACTION_H
#define THRESHOLDACTION_H
#include "AbstractAction.h"
#include "AbstractThreshold.h"



class ThresholdAction : public AbstractAction
{
public:

  ThresholdAction (Ptr< AbstractThreshold > thresholdMethod,
          Ptr< Work > pTargetWork);

  virtual void updatePreview (QRect viewport);

  virtual void rejectAction ();

  virtual void handleStartEvent ();

  virtual void applyAction ();

  void setThresholdMethod (Ptr< AbstractThreshold > thresholdMethod);

private:

  Ptr< AbstractThreshold > _thresholdMethod;

};

#endif // THRESHOLDACTION_H
